package sk.vrto.service.crypto;

/**
 * Two-way string encrypter
 */
public interface StringEncrypter {

    /**
     * Encrypts given plain text
     * @param plain Text to encrypt
     * @return Encrypted text
     */
    String encrypt(String plain);

    /**
     * Decrypts given encrypted text
     * @param encrypted Text to decrypt
     * @return Decrypted text
     */
    String decrypt(String encrypted);

}
